
// <copyright file="DbTableMetadata.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   The db table metadata.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Data.Dynamic
{
    using System.Collections.Generic;

    /// <summary>
    /// The db table metadata.
    /// </summary>
    public class DbTableMetadata : IDbTableMetadata
    {
        #region Constructors and Finalizers

        /// <summary>
        /// Initializes a new instance of the <see cref="DbTableMetadata"/> class.
        /// </summary>
        /// <param name="tableName">
        /// The table name.
        /// </param>
        /// <param name="columnsMetaData">
        /// The columns meta data.
        /// </param>
        public DbTableMetadata(string tableName, IList<IDbColumnMetadata> columnsMetaData)
        {
            this.TableName = tableName;
            this.ColumnsMetaData = columnsMetaData;
        }

        #endregion Constructors and Finalizers

        #region Public Properties

        /// <summary>
        /// Gets the columns meta data.
        /// </summary>
        public IList<IDbColumnMetadata> ColumnsMetaData { get; private set; }

        /// <summary>
        /// Gets the table name.
        /// </summary>
        public string TableName { get; private set; }

        #endregion Public Properties
    }
}